package br.pucrio.inf.lac.konoha.hyuga.common;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class CSVUtil {
	
	private static Map<String, UUID> uuidMAP = new HashMap<String, UUID>();
	
	public synchronized static UUID getUUID(String csvID) {
		if (uuidMAP.get(csvID) == null) {
			uuidMAP.put(csvID, UUID.randomUUID());
		}
		
		return uuidMAP.get(csvID);
	}
}
